From: Owen W. Taylor Date: Tue, 23 Sep 2014 19:31:30 +0000 (-0400) Subject: Pass --help to the most nested subcommand X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~1110 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=1dca5566911a59276242c5e1cc8ea4a611853879;p=ostree.git Pass --help to the most nested subcommand 'ostree admin --help' and 'ostree admin instutil --help' should give help on the deepest subcommand, not on 'ostree admin'. https://bugzilla.gnome.org/show_bug.cgi?id=737194 --- diff --git a/src/ostree/ot-admin-builtin-instutil.c b/src/ostree/ot-admin-builtin-instutil.c index 66ea80ed..9e571200 100644 --- a/src/ostree/ot-admin-builtin-instutil.c +++ b/src/ostree/ot-admin-builtin-instutil.c @@ -117,7 +117,7 @@ ot_admin_builtin_instutil (int argc, char **argv, OstreeSysroot *sysroot, GCance argc = out; - if (subcommand_name == NULL || want_help) + if (subcommand_name == NULL) { subcommand = admin_instutil_subcommands; g_print ("usage: ostree admin instutil COMMAND [options]\n"); diff --git a/src/ostree/ot-builtin-admin.c b/src/ostree/ot-builtin-admin.c index 6db97ca4..533f15f9 100644 --- a/src/ostree/ot-builtin-admin.c +++ b/src/ostree/ot-builtin-admin.c @@ -145,7 +145,7 @@ ostree_builtin_admin (int argc, char **argv, OstreeRepo *repo, GCancellable *can argc = out; - if (subcommand_name == NULL || want_help) + if (subcommand_name == NULL) { subcommand = admin_subcommands; g_print ("usage: ostree admin --sysroot=PATH COMMAND [options]\n");